package cn.iocoder.yudao.module.wine.api;

import cn.iocoder.yudao.module.member.api.user.dto.MemberUserRespDTO;
import cn.iocoder.yudao.module.member.convert.user.MemberUserConvert;
import cn.iocoder.yudao.module.wine.api.dto.BusinessUserDTO;
import cn.iocoder.yudao.module.wine.controller.admin.businessuser.vo.BusinessUserRespVO;
import cn.iocoder.yudao.module.wine.service.businessuser.BusinessUserService;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;
import java.util.Collection;
import java.util.List;

/**
 * @author zyc
 * @createDate 2024/4/22 20:13
 */
@Service
@Validated
public class BusinessUserApiImpl implements BusinessUserApi{

    @Resource
    private BusinessUserService businessUserService;

    @Override
    public BusinessUserDTO registerBusinessUser(BusinessUserDTO dto) {
        return businessUserService.register(dto);
    }

    @Override
    public void updateBusinessUserInfo(BusinessUserDTO dto) {
        businessUserService.updateUserInfo(dto);
    }

    @Override
    public BusinessUserDTO getBusinessUserByUserId(Long userId) {
        return businessUserService.getUserByUserId(userId);
    }

    public BusinessUserRespVO getBusinessUserInfo(Long userId){
        return businessUserService.getBusinessUserInfo(userId);
    }
    @Override
    public List<BusinessUserDTO> getBusinessUserList(Collection<Long> ids) {
        return businessUserService.getBusinessUserList(ids);
    }
}
